<?php echo validation_errors('<p id="nav" class="error">'); ?>
<div id="nav">
<h1><img src="<?php echo base_url();?>asset/images/truck.png" />  Edit Container</h1>
<?php if(isset($records)) : foreach($records as $row) : ?>
<?php 
echo "<br>Editing Container ID: ";
echo $this->uri->segment(3);
 echo form_open("start/edit_container/");
 echo form_hidden('containerID', $this->uri->segment(3));
 echo "<br /> Port: ";
 echo form_dropdown('port', $options, $row->port);
  echo "<br /><br /> Date:";
 echo form_input('date', $row->date);
  echo "<br /><br /> Conveyance: ";
 echo form_dropdown('conveyance', $conveyance);
  echo "<br /><br /> Container Serial: ";
 echo form_input('container_serial', $row->container_serial);
  echo "<br /><br /> Bar1: ";
 echo form_input('bar1', $row->bar1);
  echo "<br /><br /> Seal 1: ";
 echo form_input('seal1', $row->seal1);
  echo "<br /><br /> Seal 2: ";
 echo form_input('seal2', $row->seal1);
  echo "<br /><br /> Vessel Name: ";
 echo form_input('vessel_name', $row->vessel_name);
  echo "<br /><br /> REF: ";
  echo form_input('ref', $row->ref);
   echo "<br /><br /> Booking: ";
  echo form_input('booking', $row->booking);
   echo "<br /><br /> Port of unloading: ";
 echo form_dropdown('port_unload', $options, $row->port_unload);
   echo "<br /><br /> Sum Insured in US Dollar: ";
  echo form_input('sum_insured', $row->sum_insured);
  echo "<br /><br />";
echo form_submit('submit', 'Edit Container');
echo form_close();
?>
 <?php endforeach; ?>
 <?php else : ?>	
	<h3>An error was encountered</h3>
	<?php endif; ?>
</div>